<template>
  <el-container class="title-box">
    <div class="title-text">
      <span class="icon"></span>
      <slot name="title"></slot>
    </div>
    <div class="button-box">
      <slot name="button"></slot>
    </div>
  </el-container>
  <slot name="content"></slot>
</template>
<script></script>
<style lang="scss" scoped>
  .title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f3f5;
    font-size: 14px;
    padding: 6px 10px;

    .icon {
      display: inline-block;
      width: 2px;
      height: 14px;
      background: #409efe;
      margin-right: 10px;
    }

    .title-text {
      display: flex;
      align-items: center;
      font-weight: 500;
      line-height: 14px;
      font-family: PingFang SC, PingFang SC-500;
    }

    .button-box {
      cursor: pointer;
      color: #409efe;
    }
  }
</style>